Stock Price Predicition

  • Mohamed Ellethy #900182961
  • Mark George #900183231

Problem Statement

Owning stocks could add a lot of value to one’s investment portfolio that could help in building savings and increasing/maintaining wealth, but like any investment one should be aware of the associated risks given the high volatility of the stock market. There are several trading approaches that could be followed by the investor being mainly short term trading and long term investment. Short term trading is usually defined as holding a stock for no more than a year, could be even a few hours, and focusing on the profit potential associated with volatility. On the other hand, long term investment is defined as holding a stock for more than a year and they tend to exhibit much lower volatility, and are more reasonable when it comes to taking decisions about investments such as the company’s performance or future plans. Stock price prediction is widely acknowledged as a challenging undertaking due to the extraordinarily unpredictable nature of financial markets. However, to make money or predict the trend, many market players and scholars use statistical, econometric, and even neural network models to forecast stock prices. Accurate stock market models can give investors the tools they need to make better decisions. These models can aid traders in minimizing investment risk and identifying the most profitable stocks. One of the most important aspects of temporal data forecasting is selecting the most promising algorithm for modeling and predicting a specific phenomena.We will explore different models that are used to predict stock prices and use evaluation metrics to find the most effective model that predicts the uncertainty of stock prices.

Dataset

Old Stock prices joined with tweets sentiment score on date



Input/Output Example



State of the art

Comparing with four widely used models for forecasting Deep Convolutional Generative Adversarial Network outperforms others in the evaluation metrics making it the best model.



Orignial Model from Literature



Proposed Updates

Update #1: 1. Feature Engineering: we combined multiple features in this model, which better represent the problem.In addition, the data is normalized in order to have data in close range. (A repeated suggested change in the feedback )



Update #2: We added another technique/predictor that has shown to have a very high influence on stock market prices and it mainly focus on tracking tweets of influencers such as Elon Musk, that I’ve personally witnessed his huge impact in the most recent incident when he tweeted his dog “Floki” with a caption “Floki Santa”, and we’ve seen the cryptocurrency name “Santa Floki” sky-rocketing in the next few hours to almost 100x, making new multi-millionaires overnight.

details here



Update #3: Hyperparameter Tuning: finding the best hyperparameters by trial-error method which increased the model performance and predictability.

The final model architecture.



Results


Old RMSE: 8.34
New RMSE: 1.64



Technical report

Conclusion

As expected, introducing a new forecasting technique improved the accuracy of the model. The added feature, tweet analysis, proofs that news forecasting is as important as quantitive analysis. In addition, results illustrates the importance of keeping an eye on latest tweets and news for securities they own.

References

List all references here, the following are only examples

  1. Yusheng Huang, Yelin Gao, Yan Gan, Mao Ye, A new financial data forecasting model using genetic algorithm and long short-term memory network, Neurocomputing, Volume 425, 2021, Pages 207-218, ISSN 0925-2312,
  2. Weiwei Jiang,Applications of deep learning in stock market prediction: Recent progress, ExpertSystemswithApplications,Volume184,2021,115537,ISSN0957-4174
  3. Nosratabadi, Saeed & Mosavi, Amir & Duan, Puhong & Ghamisi, Pedram & Ferdinand, Filip & Band, Shahab & Reuter, Uwe & Gama, João & Gandomi, Amir. (2020). Data Science in Economics: Comprehensive Review of Advanced Machine Learning and Deep Learning Methods. 10.20944/preprints202010.0263.v1. Feng, Fuli & Chen, Huimin & He, Xiangnan & Ding, Ji & Sun, Maosong & Chua, Tat-Seng. (2019). Enhancing Stock Movement Prediction with Adversarial Training. 5843-5849. 10.24963/ijcai.2019/810.
  4. Kim, Raehyun & So, Chan & Jeong, Minbyul & Lee, Sanghoon & Kim, Jinkyu & Kang, Jaewoo. (2019). HATS: A Hierarchical Graph Attention Network for Stock Movement Prediction.
  5. Bao W, Yue J, Rao Y. A deep learning framework for financial time series using stacked autoencoders and long-short term memory. PLoS One. 2017 Jul 14;12(7):e0180944. doi: 10.1371/journal.pone.0180944. PMID: 28708865; PMCID: PMC5510866. Kaggle.com. 2022. 📊Stock Market Analysis 📈 + Prediction using LSTM.
  6. Faressayah. (2022, February 16). 📊stock market analysis 📈 + prediction using LSTM. Kaggle
  7. “Santa Floki Price Today, Hohoho to USD Live, Marketcap and Chart.” CoinMarketCap